Mod Name: Active Topics for Threads<br />Version 1.0<br />Credits: JustDave and the YASM Modification and ExtremeBikini for the alt tag preview<br />Description : This Modification adds an active topic like Ubb.Classic, displaying the latest 25 posts, it's a link in the main menu.<br /><br />Working Under: 6.2.3<br />Demo : here <br /><br />Files Altered: <br />ubbt_registerednav.tmpl.<br /><br />New Files:<br />dosearchlatest.php<br />dosearchlatest.tmpl<br /><br />Database Altered : No<br /><br />Disclaimer:<br />Please make a backup of your files and database before doing any code modifying. I'm not responsible for any problems you encounter and infopop will not provide tech support unless you restore your files to their original state.<br /><br />Follow instructions in the zip!<br /><br /><br />
Yeah, how bout' someone that knows more about it tell me!<br /><br />lmao! I'm hoping people that are good with these can look over it and either change it or tell me what to change. <br /><br />Though, all it really is is using JustDave's Search Hack, and ExtremeBikini's Hover over and get topic..... So, if those are both used here, I can't imagine it's that many extra queries. <br /><br /><br />-peter
Well done! <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />*Dal adds this one to his "to do" list for Da LAN Tech <img src="/forum/images/graemlins/smile.gif" alt="" /> *
Yeah, you have to copy and paste the contents of your dosearch.php file, and put it in there. Then, you modify that file .... <br /> <br /> <br />I explained it in the instructions, but may have not been clear. <br /> <br /> <br />Should I explain more? <br /> <br />(Basically, you create dosearchlatest.php by modifying dosearch.php, but dosearch.php is left intact and original, so technically you're adding files and really only touch the ubbt code by changing the registerednav template.) <br /> <br /> <br />-peter
You might want to include that in your instructions and leave out the zero length file <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I figured out what you were trying to do in the template and I modified your template to use the existing variables in the dosearch.php file (so there is no need to edit the dosearch.php). <br /><br />In your template you had:<br /><br />
Code:
{$postrow[$i]['Body']}
<br /><br />I replaced it with:<br /><br />
Code:
{$searchrow[$i]['Alt']}
<br /><br />You can see the results here <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I created a copy of dosearch.php and named it dabuzz.php because I thought I might have to change the way dosearch.php works, but it wasn't necessary. The only advantage I have with the new file is calling the new template.<br /><br />You might be able to reduce this hack to just a template <img src="/forum/images/graemlins/smile.gif" alt="" />
Okay, so I just tried what you said... <br /><br />Did you get this to work with an unhacked copy of dosearch.php, just renamed ? <br /><br />Cause, I just tried it and didn't get it to work. <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />I guess I'm just unclear about how to get this down to just the template.... I really just played around with JustDaves YASM and ExtremeBikini's mod, so I don't know that I completely get what it's doing. lol. What I did was get it to work, and I was happy with that. LOL. But, if you've got an easier way please help!<br /><br />(Also, the instructions did include the bit about copy/pasting into the blank file....)<br /><br />-peter<br /><br />
I have YASM installed <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I saw the blank file, skipped the instructions, and rewrote the template <img src="/forum/images/graemlins/smile.gif" alt="" />
LMAO!<br /><br />Okay, so should I just redo it by including your template change and preface it by saying you should install YASM first?<br /><br />So basically, instructions will read to install YASM, upload template, and then insert the line in the registerednav template?<br /><br />-peter
I got it up and running ... nice one thanks. I followed your instructions and copied the entire file over. I already had the yasm installed so had to use partial strings to locate some replace strings. <br /><br />Nice work I really missed the old Active Topics.
I can't take credit for this one since a lot of people put some real time and effort into making it work <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I've attached a template that I modified for this hack to clean up some of the html.
I am using it since a few minutes and really like it.<br />Would be nice if the amount of last topics that will be shown could be set in the admin menu. <img src="/forum/images/graemlins/laugh.gif" alt="" />